import {defineConfig} from "vite";
import {resolve} from 'node:path'
import dts from 'vite-plugin-dts'
export default defineConfig({
    build: {
        outDir: resolve(__dirname, "./dist"),
        lib: {
            entry: resolve(__dirname, 'lib/index.ts'),
            name: 'index',
            fileName: 'index',
            formats: ["cjs", "es"]
        },

    },
    plugins: [dts({
        include: ["lib"],
        rollupTypes: true
    })]
})